package cn.springcloud.fix.server.controller;

import cn.springcloud.fix.common.core.base.R;
import cn.springcloud.fix.server.api.log.request.SysOperateLogRequest;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@AllArgsConstructor
@RequestMapping("/remote")
public class RemoteServerController {

    @PostMapping("/insertOpLog")
    public R<Object> insertOpLog(@Validated @RequestBody SysOperateLogRequest request) {
        return R.SUCCESS();
    }

    @GetMapping("/test")
    public R<Object> test(@Validated @RequestBody SysOperateLogRequest request) {
        return R.SUCCESS();
    }
}
